package com.nbsaas.boot.app.rest.convert;

import com.nbsaas.boot.app.api.domain.simple.AppSimple;
import com.nbsaas.boot.app.data.entity.App;
import com.nbsaas.boot.rest.api.Converter;

/**
 * -列表对象转换器
 */

public class AppSimpleConvert implements Converter<AppSimple, App> {


    @Override
    public AppSimple convert(App source) {
        AppSimple result = new AppSimple();

        result.setName(source.getName());
        result.setAppKey(source.getAppKey());
        result.setId(source.getId());
        result.setAddDate(source.getAddDate());
        result.setLastDate(source.getLastDate());


        return result;
    }

}